<%@ page language="java" contentType="text/html;charset=UTF-8"
   	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<LINK REL="SHORTCUT ICON" HREF="images/icon.jpg"> 
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
</head>
<body>
	<form action="search_videos.html" method="post">
	<table cellpadding="0" width="690" cellspacing="0" border="0" align="center">
	<c:forEach var="i" begin="0" end="${fn:length(article)-1 }" step="1" varStatus ="status">
		<tr valign="top">
			<td align="left" colspan="4" style="padding-left: 5px; padding-right:5px; font-size: 15px;">
				<b style="color: #333;"><c:out value="${article[i].ARTICLE_TITLE}"></c:out></b>
			</td>
		</tr>
		<tr><td height="8"> </td></tr>
		<tr valign="top">
			<td align="left" colspan="4" style="padding-left: 5px; padding-right:5px;font-size:11px;line-height:15px;">
				<p align="justify"><c:out value="${article[i].ARTICLE_DESC}"></c:out></p>
			</td>
		</tr>
		<tr><td height="8"> </td></tr>
	</c:forEach>
	<c:if test="${fn:length(articlefiles)>0}">
			<tr valign="top">
				<td align="left" colspan="4" style="padding-left: 5px; padding-right:5px;font-size:11px;">
					<c:forEach var="i" begin="0" end="${fn:length(articlefiles)-1}" step="1" varStatus ="status">
						<c:if test="${i<fn:length(articlefiles)-1}">
							<a href="${ServerURL}${articlefiles[i].FILE_PATH}${articlefiles[i].FILE_NAME}"><c:out value="${articlefiles[i].FILE_NAME}"></c:out></a> &nbsp;<span style="color: #BBB;">|</span>&nbsp;
						</c:if>
						<c:if test="${i==fn:length(articlefiles)-1}">
							<a href="${ServerURL}${articlefiles[i].FILE_PATH}${articlefiles[i].FILE_NAME}">សូមចុចត្រង់នេះទាញយកឯកសារភ្ជាប់</a>
						</c:if>
						
					</c:forEach>
				</td>
			</tr>
			
	</c:if>
			<tr><td height="15"> </td></tr>
			<tr><td height="8" align="left" style="padding-left: 5px; padding-right:5px;">
				<c:if test="${fn:length(article[0].PREPARED_BY)>0}">
					<span style="font-size: 12px;">រៀបចំដោយ : <b style="color: #333;"><c:out value="${article[0].PREPARED_BY }"></c:out></b></span>
				</c:if>
				</td>
			</tr>
		<tr><td>&nbsp;</td></tr>
</table>
</form>
</body>
</html>